import {BaseUrl} from "../constant/constant";
import {ApiFetch} from "../api/apiHandler";


class CompanyModel {
    constructor() {
        this.url = BaseUrl
    }

    detail = (params) => {
        let end = this.url + 'getgongsijianjie'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }

    add = (params) => {
        let end = this.url + 'addgongsijianjieht'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }
}

export default CompanyModel